﻿using System;
using System.Runtime.InteropServices;
using UnityEngine;

public class Sproto 
{
	public const string SprotoLib = "unityfun";
	
	[DllImport(SprotoLib, EntryPoint="sproto_create")]
	public static extern IntPtr CreateSprotoNative(IntPtr proto, uint size);

	[DllImport("unityfun", EntryPoint = "test_add", CallingConvention = CallingConvention.Cdecl)]
	public static extern int add(int a, int b);

	public static void CreateSproto()
	{
		//
	}

}
